<?
$help['svn:switch'] = 'switch SVN tree';
$opt['svn:switch'] = array('branch', 'dir');

function cmd_svn_switch($branch, $dir){
    if(!is_branch_dir()) error('You should start switch process in branch directory');
	checkout($branch, $dir, 'switch');
}